<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" 
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
                >

    <h:form>
        <h2>Ingrese los datos del Gerente</h2>
        <p><h:inputText pt:placeholder="NOMBRE DEL GERENTE" id="nombreGerente" value="#{gerenteController.gerente.nombre}" ></h:inputText></p>
        <p><h:inputText pt:placeholder=" --- CUIL -----" id="cuilGerente" value="#{gerenteController.gerente.cuil}" ></h:inputText></p>
        <p>
            <h:commandButton id="btnNuevo" action="#{gerenteController.nuevo}" value="Nuevo" disabled="#{not empty gerenteController.gerente}" />
            <h:commandButton id="btnEditar" action="#{gerenteController.editar}" value="Editar" disabled="#{empty gerenteController.gerente}"/>
            <h:commandButton id="btnGuardar" action="#{gerenteController.guardar}" value="Guardar" disabled="#{empty gerenteController.gerente}" />
            <h:commandButton id="btnBorrar" action="#{gerenteController.borrar}" value="Borrar" disabled="#{empty gerenteController.gerente}" />
        </p>
    </h:form>
</ui:composition>


